import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(persist)
export default pinia

// export * from './modules/user'
// export * from './modules/counter'
//等价于下方将user和counter模块进行导入和导出，这样在使用的时候就可以直接导入useUserStore和useCountStore了，import { useUserStore, useCountStore } from '@/stores'
// import { useUserStore } from './modules/user'
// export { useUserStore }
// import { useCountStore } from './modules/counter'
// export { useCountStore }
